Optimal. Leaf size=18 \[ \frac {\sin (x)}{a}-\frac {\sin ^3(x)}{3 a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3254, 2713}
\begin {gather*} \frac {\sin (x)}{a}-\frac {\sin ^3(x)}{3 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2713
Rule 3254
Rubi steps
\begin {align*} \int \frac {\cos ^5(x)}{a-a \sin ^2(x)} \, dx &=\frac {\int \cos ^3(x) \, dx}{a}\\ &=-\frac {\text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (x)\right )}{a}\\ &=\frac {\sin (x)}{a}-\frac {\sin ^3(x)}{3 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 19, normalized size = 1.06 \begin {gather*} \frac {\frac {3 \sin (x)}{4}+\frac {1}{12} \sin (3 x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.15, size = 14, normalized size = 0.78
method | result | size |
default | \(\frac {-\frac {\left (\sin ^{3}\left (x \right )\right )}{3}+\sin \left (x \right )}{a}\) | \(14\) |
risch | \(\frac {3 \sin \left (x \right )}{4 a}+\frac {\sin \left (3 x \right )}{12 a}\) | \(18\) |
norman | \(\frac {-\frac {2 \tan \left (\frac {x}{2}\right )}{a}-\frac {10 \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{3 a}-\frac {4 \left (\tan ^{5}\left (\frac {x}{2}\right )\right )}{3 a}+\frac {4 \left (\tan ^{7}\left (\frac {x}{2}\right )\right )}{3 a}+\frac {10 \left (\tan ^{9}\left (\frac {x}{2}\right )\right )}{3 a}+\frac {2 \left (\tan ^{11}\left (\frac {x}{2}\right )\right )}{a}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )^{5} \left (\tan ^{2}\left (\frac {x}{2}\right )-1\right )}\) | \(87\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 14, normalized size = 0.78 \begin {gather*} -\frac {\sin \left (x\right )^{3} - 3 \, \sin \left (x\right )}{3 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 13, normalized size = 0.72 \begin {gather*} \frac {{\left (\cos \left (x\right )^{2} + 2\right )} \sin \left (x\right )}{3 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 124 vs.
\(2 (12) = 24\).
time = 2.47, size = 124, normalized size = 6.89 \begin {gather*} \frac {6 \tan ^{5}{\left (\frac {x}{2} \right )}}{3 a \tan ^{6}{\left (\frac {x}{2} \right )} + 9 a \tan ^{4}{\left (\frac {x}{2} \right )} + 9 a \tan ^{2}{\left (\frac {x}{2} \right )} + 3 a} + \frac {4 \tan ^{3}{\left (\frac {x}{2} \right )}}{3 a \tan ^{6}{\left (\frac {x}{2} \right )} + 9 a \tan ^{4}{\left (\frac {x}{2} \right )} + 9 a \tan ^{2}{\left (\frac {x}{2} \right )} + 3 a} + \frac {6 \tan {\left (\frac {x}{2} \right )}}{3 a \tan ^{6}{\left (\frac {x}{2} \right )} + 9 a \tan ^{4}{\left (\frac {x}{2} \right )} + 9 a \tan ^{2}{\left (\frac {x}{2} \right )} + 3 a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 14, normalized size = 0.78 \begin {gather*} -\frac {\sin \left (x\right )^{3} - 3 \, \sin \left (x\right )}{3 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 16, normalized size = 0.89 \begin {gather*} \frac {3\,\sin \left (x\right )-{\sin \left (x\right )}^3}{3\,a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________